<#if userService.isUserLoggedIn()>
	${userService.currentUser.nickname}&nbsp;	
	<a href="${userService.createLogoutURL('/')}">Logout</a>
<#else>
	<a href="${userService.createLoginURL('/')}">Login</a>
</#if>